package com.yonyou.gmmc.service.forum.model;

import java.util.Date;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TT_FORUM_TOPIC_IMG")
public class TtForumTopicImg {
    @Id
    @Column(name = "TOPIC_IMG_ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TT_FORUM_TOPIC_IMG")
    private Long topicImgId;

    @Column(name = "TOPIC_IMG_PATH")
    private String topicImgPath;

    @Column(name = "TOPIC_ID")
    private Long topicId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "CREATE_BY")
    private Long createBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "UPDATE_DATE")
    private Date updateDate;

    @Column(name = "UPDATE_BY")
    private Long updateBy;

    @Column(name = "DELETE_FLAG")
    private Short deleteFlag;

    /**
     * @return TOPIC_IMG_ID
     */
    public Long getTopicImgId() {
        return topicImgId;
    }

    /**
     * @param topicImgId
     */
    public void setTopicImgId(Long topicImgId) {
        this.topicImgId = topicImgId;
    }

    /**
     * @return TOPIC_IMG_PATH
     */
    public String getTopicImgPath() {
        return topicImgPath;
    }

    /**
     * @param topicImgPath
     */
    public void setTopicImgPath(String topicImgPath) {
        this.topicImgPath = topicImgPath;
    }

    /**
     * @return TOPIC_ID
     */
    public Long getTopicId() {
        return topicId;
    }

    /**
     * @param topicId
     */
    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return CREATE_BY
     */
    public Long getCreateBy() {
        return createBy;
    }

    /**
     * @param createBy
     */
    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    /**
     * @return UPDATE_DATE
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return UPDATE_BY
     */
    public Long getUpdateBy() {
        return updateBy;
    }

    /**
     * @param updateBy
     */
    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * @return DELETE_FLAG
     */
    public Short getDeleteFlag() {
        return deleteFlag;
    }

    /**
     * @param deleteFlag
     */
    public void setDeleteFlag(Short deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
}